using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.Data.Filtering;
namespace ChuanPlus.FormControl
{
    public partial class ControlSupplier : DevExpress.XtraEditors.XtraUserControl
    {
        public ControlSupplier()
        {
            InitializeComponent();
        }

        private void textFilter_EditValueChanged(object sender, EventArgs e)
        {
            CriteriaOperator filter = new BinaryOperator(new OperandProperty("SupplierName"), new OperandValue("%" + textFilter.Text + "%"), BinaryOperatorType.Like);
            xpColSupplier.Filter = filter;
        }
    }
}
